package com.nlp.visualization.service;

import com.nlp.visualization.core.seg.SegmentType;
import com.nlp.visualization.core.seg.filter.SegFilter;
import com.nlp.visualization.pojo.NLP.seg.SegmentEntity;

import java.io.File;
import java.io.IOException;
import java.util.List;

public interface IDataSegmentService {

    /**
     * 实现正常的句子分词
     *
     * @param sentences
     * @return
     */
    SegmentEntity seg(List<String> sentences, SegmentType segmentType, SegFilter filter);

    File segFile(File in, String savePath, SegmentType segmentType, SegFilter filter) throws IOException;

    List<File> segFiles(List<File> inList, String savePath, SegmentType segmentType, SegFilter filter);

    String segText(String text, SegmentType segmentType, SegFilter filter);

    SegmentEntity segWithAllNamedEntity(List<String> sentence, SegFilter filter);

}
